/* Prevent zoom on input focus */
input, textarea, select, [contenteditable] {
  font-size: 16px !important; /* Prevent iOS zoom */
  touch-action: manipulation; /* Disable double-tap zoom */
}

/* Fix for iOS viewport when keyboard appears */
@supports (-webkit-touch-callout: none) {
  html, body {
    height: 100%;
    position: fixed;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Fix for Android viewport when keyboard appears */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  html, body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Ensure input elements are properly sized on mobile */
input, textarea, select, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}
